#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int a[5];
int main()
{
    for (int i = 0; i < 3; i++)
        cin >> a[i];
    sort(a, a + 2);
    string tmp;
    for (int i = 0; i < 3; i++)
    {
        tmp += to_string(a[i]) + "->";
    }
    tmp.pop_back();
    tmp.pop_back();
    cout << tmp;
    return 0;
}